<form method="post" action="">
<div class="content">
			<h2 class="bds-title"></h2><input class="l-button" type="submit" name="dangtin" value="Đăng tin Mua/Bán BDS"/>
			<div class="bds-top-tab">
				<div class="tab-sell tab-item tab-active"> Cần bán</div>
				<div class="tab-buy tab-item"> Cần mua</div>						
			</div>
			
			<div class="sell">
			
					{$sell}
								
					<div class="clearboth"></div>
			</div>
			<div class="buy" style="display:none">
					{$buy}		
					<div class="clearboth"></div>
			</div>
		</div>
	<script type="text/javascript">
		$(".tab-sell").click(function () {				 
		    $(".tab-buy").removeClass("tab-active");
		    $(".tab-sell").addClass("tab-active");
		    $(".buy").hide();
			$(".sell").show();
		});    
		$(".tab-buy").click(function () {
			$(".tab-sell").removeClass("tab-active");
		    $(".tab-buy").addClass("tab-active");
		    $(".sell").hide();
			$(".buy").show();
			  
		}); 
	
	
	</script>
		
</form>